package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class Test {

    @RequestMapping("/hello")
    @ResponseBody
    public String test(){
        return "nihao";
    }

    @RequestMapping("/hello1")
    @ResponseBody
    public String test1(){
        return "nihao";
    }


}
